package com.atguigu.dao;

import com.atguigu.pojo.TravelGroup;
import com.github.pagehelper.Page;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;
@Repository
public interface TravelGroupDao {
    void add(TravelGroup travelGroup);

    void addTravelGroupAndTravelItem(Map<String, Integer> map);

    Page<TravelGroup> findPage(String queryString);

    TravelGroup getById(Integer id);

    List<Integer> findTravelItemIdByTravelgroupId(Integer travelGroupId);

    void deleteTravelGroupAndTravelItemByTravelGroupId(Integer id);

    void edit(TravelGroup travelGroup);

    void deleteById(Integer id);

    List<TravelGroup> findAll();

    long selectCountById(Integer id);

    long selectSetmealCountById(Integer id);


}
